var authUtil = {

    /* 
     * 是否登陆
     */
    isLoggedIn: function(req, res, next) {
        if (req.session.user)
            return next();
        res.redirect('/login');
    }

};

module.exports = authUtil;
